         <!-- 共用头部1 -->
	 <div id="top">
		 <div class="head1 clear">
			 <div class="account sprite_icon" style="text-align:center; ">
                  <a href="index.php?g=Mobile&m=User&a=index" style=" color:#FFF; line-height:50px">
                 {if cookie('username')}
                  {php $user=M('User')->field('username')->where('id='.$jgsatuserid)->find()}
                  {php echo $user['username']} 
                 {else}登录
                 {/if}
                 </a>
			 </div>
			 {if $title}
			    <div class="title">{$title}</div> 
               {else}
                <div class="title">{$seo_title}</div> 
               {/if}<div class="search sprite_icon">
			     <span class="icon2 icon_com">
			 </div>
		 </div>
	 </div> 
<include file="Mobile:nav"/>          
 <div class="choose">
		 <ul class="choose_btn clear">
			 <li style="width:33%" {if $_GET['id']==3}class="active"{/if}><a href="index.php?g=Mobile&m=News&a=index&id=3">全部</a></li>
			 <li style="width:33%" {if $_GET['id']==14}class="active"{/if}><a href="index.php?g=Mobile&m=News&a=index&id=14">{$Categorys['14']['catname']}</a></li>
			 <li style="width:33%" {if $_GET['id']==15}class="active"{/if}><a href="index.php?g=Mobile&m=News&a=index&id=15">{$Categorys['15']['catname']}</a></li>
		 </ul>

		 <!-- <div class="choose_type">
		 			 <div class="clear">
		 				 <span>现代风格</span>
		 				 <span>新中式风格</span>
		 				 <span class="active">新古典风格</span>
		 				 <span>工业复古风格</span>
		 				 <span>中式古典风格</span>
		 				 <span>东南亚风格</span>
		 				 <span>欧式风格</span>
		 				 <span>日式风格</span>
		 				 <span>其他</span>
		 			 </div>
		 
		 			 <div class="center">
		 				 <a href="javascript:;" class="sure">
		 					 确定
		 				 </a>
		 			 </div>
		 </div> -->
	 </div>
 <div id="tabajax">    
<volist name="list" id="r" key="key" >
	  <div class="P_mod_strategy_news P_color">
		 <div class="Padding clear">
			 <div class="pic">
				  <a href="index.php?g=Mobile&m=News&a=show&id={$r.id}"> <img height="80" src="{$r['pic']}" alt="" /></a>
			 </div>

			 <div class="info">
				 <a href="index.php?g=Mobile&m=News&a=show&id={$r.id}"> <h2>{$r['title']|str_cut=###,20}</h2></a>
				 <p> {$r['description']|str_cut=###,50}</p>
				 <div class="sprite_icon" style="margin-top: 10px;">
					<span class="icon6 icon_com clear"></span><em class="margin_right"> <a href="index.php?g=Mobile&m=News&a=show&id={$r.id}"> {$r['createtime']|toDate=###,'m-d H:i'}</a></em>
				    <span class="icon7 icon_com"></span><em>{$r['hits']}</em>
				 </div>
			 </div>
		 </div>
	 </div>
</volist>
</div>
{if $count>$listRows}
<div class="psges" name="index.php?g=Mobile&m=News&a=index&id=3&p=2">下拉加载更多</div>
{else}
 <div  style="width:100%;     width: 100%; text-align: center;margin-top: 10px;padding: 0px 0 80px !important;">没有更多</div>

{/if}


<style>
  #footer{ display:none}
  </style>  
<script>
     $(window).scroll(function()
 
   {
 
    if ($(window).scrollTop() == $(document).height() - $(window).height())
 
    {
 
         var url=$('.psges').attr("name");
		 $('.psges').html('加载中...');
	   //alert(url)
		 $.ajax({
			type:"GET",
			url: url,
			//data: "name=John&location=Boston",
			dataType:'json', //数据类型
			success: function(msg){
				if(msg.list){
					var result_len=msg.list.length;
					for(var i=0;i<result_len;i++){
						
					       var html='';
					    html+='<div class="P_mod_strategy_news P_color">';
		                html+='<div class="Padding clear">';
			            html+='<div class="pic">';
				        html+='<a href="index.php?g=Mobile&m=News&a=show&id='+msg.list[i].id+'"><img height="80" src="'+msg.list[i].pic+'" alt="" /></a>';
			            html+='</div>';
                        html+='<div class="info">';
				        html+='<h2><a href="index.php?g=Mobile&m=News&a=show&id='+msg.list[i].id+'">'+msg.list[i].title+'</a></h2>';
				        html+='<p><a href="index.php?g=Mobile&m=News&a=show&id='+msg.list[i].id+'">'+msg.list[i].description+'</a></p>';
				        html+='<div class="sprite_icon">';
					    html+='<span class="icon6 icon_com clear"></span><em class="margin_right">'+msg.list[i].date+'</em>';
					    html+='<span class="icon7 icon_com"></span><em>'+msg.list[i].hits+'</em>';
				        html+='</div>';
			            html+='</div>';
		                html+='</div>';
	                    html+='</div>';
							
					 
					  $("#tabajax").append(html);
					}
					 $('.psges').attr('name','index.php?g=Mobile&m=News&a=index&id=3&p='+msg.p);
					 $('.psges').html('下拉加载更多');
					 
					}else{ $('.psges').html('没有更多');  }
				    
					
			   
			  
				}
	   
				
		});
	   
 
    }
 
   });
   

</script>    